package com.stoken.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.stoken.dao.TypeLineInfoDao;
import com.stoken.domain.TravelLineType;
import com.stoken.domain.TypeLineInfo;
import com.stoken.service.TypeLineInfoService;
import com.symbio.commons.Page;
import com.symbio.dao.hibernate.GenericDaoImpl;
import com.symbio.service.impl.AbstractServiceImpl;

@Service
public class TypeLineInfoServiceImpl  extends AbstractServiceImpl<TypeLineInfo, Long> implements TypeLineInfoService {

	@Autowired
	private TypeLineInfoDao typeLineInfoDao;
	
	@Override
	public GenericDaoImpl<TypeLineInfo, Long> getDao() {		
		return typeLineInfoDao;
	}

	@Override
	public Page<TypeLineInfo> find(Page<TypeLineInfo> pageData,String typeLabel) {		
		return typeLineInfoDao.findListByLineType(pageData, typeLabel);
	}

	

}
